using System;
using System.Collections.Generic;
using System.Text;

using System.Runtime.Serialization;

using Konekti.Domain.Interface;

namespace Konekti.Domain
{    
    [DataContract]
    public class SecUser : ISecUser
    {
        #region Members
        private int userid;
        private string name;
        private string username;
        private string password;
        private int rowinfo;
        #endregion

        #region Properties

        /// <summary>
        /// 
        /// </summary>  
        [DataMember]
        public virtual int UserId
        {
            get { return this.userid; }
            set { this.userid = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public virtual string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public virtual string Username
        {
            get { return this.username; }
            set { this.username = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public virtual string Password
        {
            get { return this.password; }
            set { this.password = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public virtual int Rowinfo
        {
            get { return this.rowinfo; }
            set { this.rowinfo = value; }
        }

        #endregion

        #region Constructors
        /// <summary>
        /// The default constructor.
        /// </summary>
        public SecUser()
        {
        }

        /// <summary>
        /// The constructor with the not nullable fields.
        /// </summary>
        public SecUser(string name, string username, string password, int rowinfo)
        {
            this.name = name;
            this.username = username;
            this.password = password;
            this.rowinfo = rowinfo;
        }
        #endregion
    }
}
